from goodies import models

x = models.Category(name='root')
y = models.Category(name='child')
x.save()
y.save()
y.parent = x
y.save()
x.save()
z = models.Category(name='child_child')
z.parent = y
z.save()



